repaired bug "Cannot read property 'title' of undefined"