function typo bugfix