Fix small bug with collecting node name