Fix typo in parameters and function names