Log file bug fix.