patching attr error.