Fixes bug in student view.