Get rid of bad lines