bug in makecatalog_phase3.rb