Fix function typo