fix B2G_init, Gaia_init generation