Fix the writing of checksums to disk.