Fixed issue with config file logic