type -> collection.name bugfix