Fix wrong variable name missed in code refactoring.