Fix domain resolve method