pref attachment fix