Fix the rendering of the grid.
Fixed #16