fixed __getattr__ issue