fixed mongo db error