Fix typeTerm in schema