fix apiEndPoint override bug