fixed list indices and checking for missing node labels