Fix newGrid->gridData[i] in gr_make_grid