Bug in plotPredictions