fix grid.