Fixed issue with config copying