fix a bug when config_file doesn't exist