fixes another issue with (for x y) loop on fixed grids.