fix an issue with the line counts