Correct method name typo in code