fixed setting api status