fix connection on mongodb