line count fix