fixed some  edge-case bugs in PAV's predicts