Fixing logic for calculating total band