Cannot read property 'publication' of undefined