Avoid no-pref exception