Problems adding files to collections.

Hello.
I created a collection and added files to it.
But for some reason, not a single file was added to the collection. Although in the “edit” tab of each of the files it is indicated that they are part of a collection.
How to fix it?