Fixed freeze onResume