fixed a bunch of errors in risk_assessor and views