Bugfix: alarm check decrements first.