Fixing linecount