latex: fix diagram