fix support for custom domain