fix hash resolution in getValueOfBestMatchingHashEntry