Fixed typo in functions