edge case of 1 item fixed in dequeue