fix hash of tuple