fixed empty queue dequeue
fixed weird out double