possible memleak when using SetField()