fixed a small bug where an incorrect checksum would wipe old data