fixed the grid situation