Fix the bug that config[:config_file] is overwriten