Fixed error in config generation