fix silly bug causing double downloading