Fix a bug in comparing variables. RooCategory are not RooRealvar’s