Merge "Clamping active_{best, worst}_quality values."