Use "name" for undefined key variable

Fixes #158