fixed issue #1622. Thanks @kyleflanagan for reporting it
Merge pull request #164 from niphlod/issue/1622

fixed issue #1622. Thanks @kyleflanagan for reporting it