debug endless loop of migration