bug fix in num.pred