Fixed bug in prediction update script.