fix GenerateApplyFunc1()
fix generator
fix build error