fixed error when log file doesn't exist