Fix some typos in API script.