Fixed typo in function definitions