Fix __getattr__ problems.