fix issue where text was hinted outside selection