fix custom domain 404 bug