I copied the code from Feynman Diagrams: Ugly u-channel, trying to produce a U-channel Feynman diagram. However, it produces a different, incorrect, Feynman diagram.
\documentclass[preview]{standalone}
\usepackage[compat=1.1.0]{tikz-feynman}
\begin{document}
\begin{tikzpicture}
\begin{feynman}
\diagram [vertical'=a to b] {
i1 [particle=3]
-- [fermion] a
-- [draw=none] f1 [particle=1],
a -- [photon, edge label'=(p)] b,
i2 [particle=2]
-- [anti fermion] b
-- [draw=none] f2 [particle=4],
};
\diagram* {
(a) -- [fermion] (f2),
(b) -- [anti fermion] (f1),
};
\end{feynman}
\end{tikzpicture}
\end{document}
Here the correct Feynman diagram
My compiled image
How could it be that I can only produce the wrong Feynman diagram?


