used_warn and used_crit return wrong values.