all the bugs with the inference capability fixed