fixed logging client bug