fixing log file