fixing invalid main config