Fix domain compile bug