Notifications based on conditions are sent to the wrong email