fixed alarm deletion bug