fix crash in onStop