fix autoscaling termination duration bug