Bugfix in prediction scope