fix hash function call