fix get null domain problem