fixed bug on fileupload