fixing notices and syncing with refactoring in Article.php