bug fix for autoscaling termination