Fixed bug with primary domain.