Issue 39: Resolved get_pref issue