Fix regression preventing folders from being added to the collection