fix for warn_on_failure condition