Fix quality checking