fix the bug of hash