copy xdm address correctly