fix API in docs