Remove spurious lines