Fixed migration errors.