fix type in api location