Bundles and finite foliations