fix for setGridBounds