Fixed download code.