Fixed bug in preferences.xml and removed <PreferenceCategory>