fixed destroy bug.