download file bug fix