Solved a bug in download