correct deletion issues