Fix casing of function calls in API