解决engine delete的bug