Fixed small bug on the grid.