fix position calculus with '</>'