I have a simple question about Tanaka-Meyer formula, I am having difficulty applying it. Let $X$ be a continous martingale vanishing at zero. From Tanaka-Meyer formula it holds $$d|X_t| = sgn(X_t)dX_t+d \Lambda^X_t(0)$$ where $\Lambda^X_t(0)$ is the local time accumulated by the process $X$ at the origin.
I am interested in the process $Z = X^2$. From Itô's formula we have $$dZ_t = 2X_t dX_t + d \langle X \rangle_t.$$ Since obviously $Z = |Z|$ applying Tanaka-Meyer should have the same differential, however $$d|Z_t| = 2sgn(Z_t) X_t dX_t + sgn(Z_t)d \langle X \rangle_t + d \Lambda^Z_t(0) ,$$ and $$dZ^+_t = 2*\mathbb{1}_{[Z_t>0]} X_t dX_t + \mathbb{1}_{[Z_t>0]}d \langle X \rangle_t + {1 \over 2} d \Lambda^Z_t(0) .$$
Applying the expected value to processes $|Z|$ and $Z^+$, I have \begin{align} \mathbb{E}[\int_0^T sgn(X^2_t)d\langle X \rangle_t +\Lambda^Z_t(0) ] = \mathbb{E}[\int_0^T \mathbb{1}_{[X^2_t>0]}d\langle X \rangle_t +{1 \over 2}\Lambda^Z_t(0)] \end{align}
which feels like that $\Lambda^Z_t(0) = 0 ~ a.s.$ Where is my reasoning wrong? I have been staring at it longer than I like to admit.