fix: don't set live/dead until end of each iteration.