fix for @resource.server may be multiple domain