bug solved for consecutive migrations