fixed the main config