Is this diagram of sheaves actually Cartesian as claimed?

The question is about Corollary 1.6.2 (b) in the book by Laumon and Moret-Bailly on algebraic stacks.

There we have a scheme $S$ and morphisms $X \xrightarrow{f} Y \xrightarrow{g} Z$ of sheaves on a (version of) the big etale site of $S$. The goal is to prove that if $g \circ f$ and $Y \times_Z Y \rightarrow Y \times_S Y$ are representable by algebraic spaces, then $f$ is also representable by algebraic spaces. The proof proceeds by taking a test morphism $y\colon U \rightarrow Y$ from an $S$-scheme $U$ and observing that the diagram with top row $$X \times_Y U \rightarrow X \times_Z U$$ and bottom row $$Y\times_Z Y \rightarrow Y \times_S Y$$ is Cartesian (sorry, I don't know how to draw commutative diagrams here). I can't understand why this diagram is Cartesian: it seems that the bottom row doesn't capture the condition that the "elements" of $X$ and $U$ should have equal images in $Y$. It seems that the diagram would be Cartesian if the bottom row were $$Y \rightarrow Y\times_Z Y$$ instead. I would be extremely grateful if someone could clarify my confusion and explain the proof of the cited Corollary.

• There are several typos and missing hypotheses in that corollary. In (i) and (ii) one should assume $Y\rightarrow Y \times_S Y$ is representable. I agree that the diagram is incorrect at the bottom: it should indeed be $\Delta_{Y/Z}$ there. I crossed out the final sentence of the proof in my copy and replaced it with something else; hopefully you can now figure out the rest. – grghxy Apr 26 '15 at 10:24
• @grghxy: Thank you. I guess you meant that one should assume that $Y \rightarrow Y \times_Z Y$ is representable (instead of $Y \rightarrow Y\times_S Y$)? By extension then, I suppose Lemma 3.12 needs analogous modifications. – O-Ren Ishii Apr 26 '15 at 15:46