Fix typo in function and variable names