Remove bad lines