Fix hardcoded value in API function.