Fix mongoose beta