fix getattr in settings