Fixed logging defect