fixed api issue