fix generators serizalization