fixing readPreference