fix bug for download