Remove erroneous classes.