Fix the issue with bundler during deep copy