Fixed compilation error due to using wrong labels in switch cases