fix multi-domain issue