fix error with optional params
Merge pull request #1 from nucleartux/master

fix error with optional params