Fixed log printing.