fixed an oopsie in grid.cc