Fix quality control scode