fix valuePos for nodes