Fix endPoint address