Bug fix download data script