fixes a bug in node addition batch generators