Fix migration for envs without distributors