There is actually no problem here. In the text drawing, the photon from the herald0 is sent on mode 1 by the first PERM and put back on mode 4 by the last PERM. It’s just that representing permutations is ascii is too difficult so we just represent them with a cross without the detail of what is really happening.