Do proper initialization of the endpoints