bz10893: fixes bug for hash calculations when using --allmatch.