fix bug when pressing pos1 on a LaTeX node