fix bug:not check tail ng when head is null