Fixed compile issues with deque change.