fix bug in add_catalog_data that I introduces a few commits ago