Fix misspelling of function names