fix file upload issue