Fix deque iterator