fix parsing of queries with fti prefixes