queueLock fixed