fix line count