Fix hash comparisons in profile spec