Fix on app resume issue