Fixed getArticle bug, where file was closing