fix JS Flat generation of Auto generated ID