better fixing token alignment check for char offsets