Bugfix: timerWhen would repeatedly unregister timer