extract the collection and fix the view collection bug