bugfix for upgrade when meta modules are enabled