Fixed Issues with overlapping bold and underline patterns