fix possible bug with same content messages having same hashes