fix return va;ue of config_get_val