update lex-nodes building for new iterating API of map