fixed a couple of cases where changed tokenisation leads to different text offsets