Fix bug in cs_hash_dup_count