Remove erroneous code