Fix migration of qualifications