Fix for hash counting
Merge remote-tracking branch 'upstream/master'