Fixed a switch without a default value and does not compile. Fixed a spelling error.