Fixing logic error in hash comparisons.