Fix undefined local variable 'name'
Merge pull request #72 from vinc/fix-undefined-variable

Fix undefined local variable 'name'