fix due to #21
Merge pull request #11 from invisiblejs/unique_validation_fix

fix due to invisible#21