fix bug about the head, because the head node have no data