fix some api