Fixed bug with highlighting too few characters at a time