fix BD in setting.py