Remove erroneous lines