fixed defect when chaging scale limits