Bug fix: Don't modify records when undoing. Don't rely on team order (although we shouldn't really be changing it anyway).