Fixing a bug when starting a new deployment