Fixed typo in logZ formulation.