fix api mistake