actually fix deletion bug