fixed getAllNodes output