fix some of the line numbering issues