undefined xdr fix when aborting