Fix endpoint url.