fix cfg file