fix deletion error