fix bug: idToWaitList leak