Forgot to rename function argument in api.h