Fixed infinite loop in the prognosis view.