fix the struct field validate does not work