fixed bug: attaching callbacks to queued, non-running tasks