- fix NPE in onResume()