Fix config generation