Fix off by 1 error when displaying the number of a line with an error