fixed the search for boxed texts