bug fix on master_config_generator