fixed mongod bug for connect