fixing qry type text