Fix issue on check of alarm existence