onDestroy correction