fix error in logZend method. Rearrange calls to logZend. Correct typo.