Fix log instantiation place.