bugfix: don't use same variable name for node and dict value