fix selection of text drawing for text in frames