bug fix in delete function of LL