Fixed error with cases in getting enum value from user input.