fixed opts.name bug
Merge pull request #2 from ralphtheninja/master

fixed opts.name bug