Fix hash compare