fix hash operation