Fixed a bug in generate_root_fids.cxx.