Fixed crash in student migration