fix PreferenceActivity null pointer exception