fix handling of rule id when updating notification rules