JJEditor destroy bugfix