fix switchDomain