fix calculation for grid headers