fixed the hashcounter bug