Bugfix: correct premature exit of tick()