fixing group size mix-up