Validate globalConfig
Fix config