Fixed typo in generic functions