Do not use getattr with dict