Fix an issue with quality selection