deletion bug fix