fix resume bug