Bugfix illegal offset when adding student in new school