Fixed logic in oracle predictor