Fix SetField method.