Fixed typo in function defs