bugfix: invert the logic for issuing a warning