fix return value of doTick/2