fix broken line number tracking