Fix check in log file