fix auto migration