Fixed decision tree for factor target.
Fixed calculation for factor target.