fixed nullpointer in getprefs