Fix validation of unique once in 2.0.x