fixed api request issue