fixed pref update problem