fix bug in get_conf