fixed a function typo