Fixing polarity issue in CustomFunctionsPutTrigger