an attempt at fixing the offset bug, with the assumption that a number is not repeated twice in a sentence