fix typo and fix possible issues of the change of the default value