fix to use xor of hash, in order to independent from the order of files