fix a bug in local_settings_tempaltes