fix error where call to .Error() is recursive