Fix hash value of QueryRegex