Fixed update of the shared files list after removing files.