correction to hash detection