Fix quality parsing