fix for getting the grid