Fixed bug in get_catalog