fix bug when there are no options
Merge pull request #111 from pknepper/master

fix bug when there are no options