Fix options clear in uniqueness validator. [ fix #2835 ]