Preference setting bug fixed.