Fix deletion error