fix download state setting