fix api doc
(cherry-picked from 0f0fe86)