fixed duplicates and site-id in settings.