Fixed chunk archive download problem.

Code was trying to write non-existent variables to the chunks directory.
Replaced with correct variables.