Fixed bug in model_config_set