fix local-autoscaling bug when range is 0