fix bug on upload file.