Minor fix in auto quality selection