Fix collection_name bug