fixed api minor bag