Fix wrong user type check on domain model.