fix numerical problems in generative training
update examples