Work around Mongo bug