fix not reseting log string