Fixed an error message of invalid mode selection.