Fixed some migration errors.