fixing totalcalculation sizegroup issue