Fixed incorrect positioning of the grid