Small fix in api usage