fix cfg issue