fixed api endpoint setting