fixed api status bug