fix resume issue