Fix resume problem