fix hash to string type error