Fix bug when calling load_config