Fix usage of ENDPOINT.