fixing out of sync issues when pausing/resuming