fixup wait in cond