fix hash_add mis use.