fix to work with workers with one optional argument
Merge pull request #32 from nata79/master

fix to work with workers with one optional argument