Fix creating domains