Use "name" for undefined key variable

Fixes #158
Merge pull request #159 from kapouer/patch-1

Use "name" for undefined key variable