fixed non-existing logfile bug