Fix bugs in upload files modified