Fixed bug when storing non-square ASCII grids