fixed for xtarget window when first logging on.