Wrongly spelled function was still being used