Fix function naming bug