fix to center the grid