Fix log creation