Fixed broken auto scaling feature.