setting.sh bug fix