off by one bug in part highlighting