fix the bug in update student