Fix log issue