Rename conflicting variable:
prefs =>
subTreePrefs