fix gridfs bug