[bugfix] Uncaught TypeError: Cannot read property 'name' of undefined