Fixes some inconsistencies when exporting configs.