Fixed bug with line numberings being incorrect in output