Fix bug in lexeme iterator & fix mongo conf