fixed config generation