fixed mongo persistence issue