fixed another crash

when checking the validity of a volatile var,
if the var is inside_union_field, check the container union var
rather than the field var.