fixes quality switching