Fix checksum generation (so that checksums will possibly be generated
many times, and not just once).