Fixed line clearing bug.