Added function to fix trainer data block checksum