fix hash problems