fix alarm edit while being the active alarm causing crash