Fixed bug when not every node had label