Fix a type judgment error.