fixed a bug in MetaKVM when under some conditions mgr was undefined