fix change domain bug