Fix main config