fixing destory so it actually works.