fix a function call missed during refactoring