fix api bug

Change-Id: Icbc5b1da947d988fb8240e7de80084baf3a9cc91