Fix a bug (queryQuery -> extractQuery)