fixed logging error.