Fix lexer positions handling