fixed error in logfile