Fix hash detection