Fix bug with predictions