fix spawnwait in regen capture