Fix log problems.