there was a bug in storing collection_name.