Fixed problem with updating an alarm definition