fix GetPreference warning
Merge pull request #4 from djpohly/pref-warning

fix GetPreference warning