fix undefined var in case of new student

introduced by 55e8f for #18