Remove erroneous switch