destroy bug fix