Fixing download scans

Fixing bug when downloading scan that is looping over all the subject twice.