Fix getattr in settings