fixing onResume