fix bug in student controller