Small fix in api type