hopefully fixed the destroy() error.