fix bug relaated file download and little bugs