fix for calculating group band