Fix config file loading