Correct off by one issue with line numbers