fix __getattr__