Fixed bug in multigroup means