Fix a problem where default config doesn't exist

In this case the previous code has thrown an excaption