Removes erroneous code