table: handle past-last-row boundary condition