Fix downloading of files