correct a mistake in the computation of the jacobian