Fix faulty __getattr__