Fix line number counting.