Fixups in quality computation