fix "not resumed" assertion