fix build error in GtGenerator
reduce build error
fix build error