Fixed log creation