api, fix bug again