Remove spurious two lines from a plot