fix brightness weighting