fix for saving bundles