Fix error in download process