fix bug when download file