fix main config