fixed destroy bug