removed extra rebuildDomains line