Fixed log file initialization