fixed bug: three or more equal hashes, causing wrong output