fix `nameFunc`
Merge pull request #7 from cvan/patch-2

fix `nameFunc`