Fixing loitering issue for Deque implementation