Fix bug in settings view