fixed the stats view bug for teacher view.