Fixing line bugs