Probably has to do with a wrong conversion of map coordinates from 1D vector to 2D matrix.
Probably has to do with a wrong conversion of map coordinates from 1D vector to 2D matrix.