fix row recalculations for bottom row