fix line number computation