Fixed function generation typo