fixed compile error in domain module