Fix saving bug with multiple nodes