fixed softmaxforest bug