Fixed bugs causing Var Classifier not work.