fix problem with empty log file