fix gen_settings.py