fixed errors with mongod