Removing erroneous material