Fix the index problem at file removal that happened when more files are added after an upload.