Fix config.json creation