Bug fix for collection name not being retrieved correctly in querying, but only in creating