Fixed fitgroupby