Fix display of the grid