Fixed the internalization of MongoPersistence.wireup