fixed segmentation fault in dequeue