Fixing array issue with config file generation