Fixed errors with downloads