fixing bug when trying to attach modules from multiple bundles