Attempt to fix reverse line numbering problem.