make CUICopyTargetHostName work