fixed the validation bug for unknown fields