Remove erroneously added classes.