Fix getattr on result object.