Fixed bugs in Value Prediction, modified equation