fix subdomain errors
Merge pull request #121 from cdcueva/subdomain

fix subdomain errors