Fixed crashing in settings activity