Destroy script fix