fix bug about using setting.