Fixed the switch statement.