fix validation issue
Merge pull request #23 from lewenhagen/master

fix validation issue