Fix RecursivePriorityQueue::rewind recursive problem