logging repeat fix