Fixing download cache code.