Add a \newpage line to where LaTeX was placing a diagram incorrectly