cfg_get_by_name() returns an error instead of the incorrect value