Fixed all the migration errors.