fixed bug when updating student info