Fixed switch statement.