fix resuming