fix onStop crash when go back to MainActivity