fix hash code