Fix a wrong use of the kind of function in mistake.