Correct typo in function call and name