fixed global modules in packages