Bug fixed in Output to ROOT files