Fixing function typo