fix the query builder because obviously it's a string

limit the queryHook's condition to only REGEX and QUERY