fix the function typo