A few small fixes to checksum/download code