fix pref install issue