In invalid mode is given, fallback to the default value.