fixed a bug in students.cpp