fix bugs in model of student details