Fix resume errors