I got a contradiction. Help me to understand it. It is about answer by Sándor Kovács of a question https://mathoverflow.net/questions/55526/example-of-a-variety-with-k-x-mathbb-q-cartier-but-not-cartier
Kovács gave an example $X$. Basically this $X$ is a toric variety. It is not hard to calculate class group of $X$. For any toric variety class group is generated by tor-invariant divisors. For $X$ there are three such divisors. Set theoretically they are defined by equations $x^2=0$, $y^2=0$ and $z^2=0$. But those functions have zero of order two on corresponding divisors. So it is better to write
$$D_1 = \frac{1}{2} div( x^2 )$$ $$D_2 = \frac{1}{2} div( y^2 )$$ $$D_3 = \frac{1}{2} div( z^2 )$$
Relations between these divisors are generated by monomials. $$D_1 + D_2 = div (xy) = 0$$ $$2 D_3 = div(z^2) = 0$$ $$ \dots $$
Relations are as follows $D_1 + D_2$, $D_2 + D_3$, $D_3 + D_1$, $2D_1$, $2D_2$, $2D_3$.
Evidently the class group which is generated by $D_1$, $D_2$ and $D_3$ modulo relations is just $\mathbb{Z} / 2 \mathbb{Z}$. After tensoring with $\mathbb{Q}$ it becomes 0.
So the $K_X$ is a $\mathbb{Q}$ divisor which is just zero. But $\pi^* K_X$ is not zero as a $\mathbb{Q}$ divisor (it follows from Kovács calculations).
Question: What is wrong?