fix migration (previous trick does not work due to global parameter alternate... missing when migration is executed)