Hofer-Zehnder, Symplectic invariants and Hamiltonian dynamics, defines $\omega_0$ as the standard symplectic form, $\sum_1^ndy_j\wedge dx_j$, where $x_1,\dotsc,x_n,y_1,\dotsc,y_n$ are the coordinates of $\mathbb{R}^{2n}$. It also says:
$$\omega_0(u,v)=\langle Ju,v\rangle,$$
where $J$ is a block matrix having 0 blocks on the diagonal, a $-I_n$ block in the BL corner and a $I_n$ block in the TR corner, blocks being all $n\times n$. Then it notes:
$$\omega_0=\sum_{j=1}^ndy_j\wedge dx_j=d\left(\sum_{j=1}^ny_jdx_j\right)=d\lambda,$$
thus defining $\lambda=\sum_{j=1}^ny_jdx_j$. And I'm perfectly OK with all that. If I integrate this form over a curve $\gamma$ parametrized by $x(t)$ with $t\in[0,1]$, I expect to get:
$$\int_\gamma\lambda=\int_0^2\left(\sum_{j=1}^nx_{n+j}\dot x_j\right)dt.$$
Then the book says the integral equates to:
$$\int_\gamma\lambda=\frac12\int_0^1\langle-J\dot x,x\rangle dt.$$
If I spell that out, I would get:
$$\int_\gamma\lambda=\frac12\int_0^1\left(\sum_{j=1}^n\dot x_{n+j}x_j-\sum_{j=1}^nx_{n+j}\dot x_j\right)dt.$$
So there is a $\frac12$ that shouldn't be there, the first term is out of the blue, and the second one has the wrong sign. Am I missing something? How are these two forms equal?