Error When retrieving news: Variable is undefined