Fix log file not created.