Fix pendingQueue