fixed bug in clone_bundle()