fixed log remove when file dosen't exists yet