onDestroy crash fixed