fix on deque