Fix typos in config API usage