                      (get-in deployment
                              [:parameters :selectedLoadBalancers]))
           asg-name (get-in deployment
-                           [:parameters (new-asg-name-key deployment)])]
+                           [:parameters (new-asg-name-key task)])]
       (health/wait-until-elb-healthy environment region elb-names asg-name
                                      deployment-id task task-finished
                                      task-timed-out))

      (health/wait-until-asg-healthy
       environment
       region
       (get-in deployment [:parameters (new-asg-name-key deployment)])
       (or (get-in deployment [:parameters :min]) asgard/default-minimum)
       port healthcheck deployment-id task
       task-finished task-timed-out))

  :delete-asg
  [{:keys [environment region] deployment-id :id :as deployment} task]
  (if-let [asg (get-in deployment [:parameters
                                   (old-asg-name-key task)])]
    (asgard/delete-asg
     environment region asg deployment-id task task-finished task-timed-out)
    (let [task (assoc (util/append-to-task-log "No old ASG to delete" task)
