handle null tool in dataset