Fix bug with destroy method