[api] fix my refactoring