fix preference setting