fix onlyOneErrorElement option
Merge pull request #5 from juanfran/master

fix onlyOneErrorElement option