Merge pull request #194 from chris18890/dev

bugfix for upgrade when meta modules are enabled