small fix for api