fixed the hashcounter bug #2