fix api compile warn