Fixed typo in the endpoint update