fix a bug in DelayedTrick::onUse