fix domain setting bug