fixed issue with multiple domains