fix deque