resolve the bug to find config files