fixing small error with the api that prevents connecitng wiht it