fix for reroute nodes