fix safari bug on multiple file upload