If you happen to delete the tail , the code does not update the tail pointer of the list to point to the previous element