Fix typo and add default value for from API