Fix alarms filter bug