Remark 17.11.7. In the lemma above some condition beyond the condition that $X$ is quasi-compact is necessary. See Sheaves, Example 6.29.2.

In your comment you can use Markdown and LaTeX style mathematics (enclose it like $\pi$). A preview option is available if you wish to see how it works out (just click on the eye in the toolbar).