Correct deletion bug