fixed race condition with canceled operation in a queue