fixes style when text is highlighted