fixed some  edge-case bugs in PAV's predicts
Merge pull request #77 from sanity/pavPredictFix

fixed some  edge-case bugs in PAV's predicts