fix infinite loop in newArticleId()