CRAFTERCMS-40: fixing condition, logic was backwards