defered delete bug fix