fix of readPreference bug