fix incorrect function name when refactoring