Fixed function naming bug