fixed bug about hash