fix onlyOneErrorElement option