fix line counts