Fixing issues with notification rules created in code.