bug fix: page height miscalculation on grids