fixed migration errors