TypeError: Cannot set property 'pubDate' of undefined