Fix typo in function declaration