Fix a missing type() call