Fix problem with all nodes being same