Fixed issues with log files