fix condition for new log withot name