Fixed bunch of CS error of UriEndpoint