fix hashes on 64 bit systems