Process tree of prefs correctly