Fixed decoding bug for dual grids