fix xg ensemble