Fix in quality computation