Correct the variable name in warning message. #3305.