Fixed typo in function definition