fixed bug in TargetLogger