fixed deque null exception