The "default" case should be the last one in the list. Otherwise it will hit that if the value is 1.