weird bug where groups change in first runs but not in later