minor change in grid.cc to elim a compiler error