fix bug: upload more than 2 files will failed