Fix the main configuration.